
const userRouter =  [
    {
        url: '/res/captcha',
        type: 'get',
        response: () => {
            return {
                code: 200,
                message: '获取验证码成功',
                data: {
                    code: `<svg xmlns="http://www.w3.org/2000/svg" width="85" height="30" viewBox="0,0,150,50"><path d="M13 45 C95 40,64 6,137 37" stroke="#777" fill="none"/><path fill="#222" d="M54.16 26.7
                    7L54.26 26.88L54.28 26.89Q55.98 26.96 57.81 26.96L57.80 26.95L57.92 27.07Q59.65 27.01 61.48 26.86L61.41 26.79L61.54 26.92Q61.37 27.51 61.37 28.23L61.39 28.25L61.26 29.46L61.30 29.5
                    0Q59.05 29.61 54.30 29.73L54.29 29.72L54.27 29.70Q54.19 35.56 53.04 40.54L52.97 40.47L53.15 40.64Q50.86 41.25 49.38 42.05L49.35 42.03L49.34 42.02Q51.79 35.33 51.53 28.22L51.35 28.0
                    4L51.46 28.15Q51.16 20.96 48.50 14.30L48.50 14.30L48.56 14.36Q52.25 16.91 57.01 17.14L56.86 16.98L57.05 17.18Q61.67 17.30 65.82 15.55L65.79 15.52L65.83 15.56Q65.47 16.31 65.24 17.1
                    1L65.20 17.06L64.71 18.67L64.76 18.73Q62.03 19.80 59.07 19.95L58.99 19.88L59.01 19.90Q56.20 20.18 53.35 19.45L53.28 19.38L53.37 19.47Q53.98 22.79 54.17 26.79ZM66.49 14.90L66.34 14.
                    74L66.42 14.83Q61.78 16.93 56.91 16.62L56.92 16.63L56.89 16.60Q51.66 16.40 47.93 13.54L47.88 13.49L47.83 13.43Q50.65 20.34 50.96 27.95L50.98 27.97L51.10 28.09Q51.34 35.95 48.83 42.
                    72L48.86 42.76L48.81 42.71Q49.60 42.43 50.97 41.78L50.95 41.76L50.82 41.63Q50.68 42.44 50.11 43.96L50.19 44.05L50.09 43.94Q52.51 42.98 55.40 42.48L55.39 42.47L55.33 42.41Q55.98 37.
                    58 56.17 31.87L56.24 31.93L56.08 31.77Q57.90 31.77 59.73 31.77L59.73 31.77L59.82 31.87Q61.61 31.86 63.44 32.05L63.40 32.02L63.44 32.06Q63.33 31.11 63.33 30.20L63.19 30.06L63.36 28.
                    32L63.33 28.29Q62.42 28.26 61.58 28.26L61.61 28.29L61.60 28.27Q61.61 27.41 61.68 26.38L61.83 26.53L61.70 26.40Q60.34 26.60 58.93 26.60L59.00 26.67L58.87 26.54Q57.53 26.60 56.16 26.
                    56L56.12 26.53L56.09 24.36L56.06 24.33Q56.11 23.32 56.00 22.25L56.03 22.29L55.99 22.25Q56.88 22.22 57.87 22.22L57.93 22.28L58.04 22.39Q62.72 22.31 66.34 20.41L66.27 20.35L66.37 20.
                    45Q66.90 18.65 67.82 16.03L67.68 15.89L67.63 15.84Q66.52 16.87 65.72 17.21L65.54 17.03L65.66 17.15Q65.83 16.29 66.32 14.73Z"/><path fill="#222" d="M85.98 41.10L86.00 41.12L84.24 41
            .07L84.24 41.07Q80.89 41.11 79.94 38.98L79.99 39.03L79.95 38.99Q81.22 38.05 82.67 36.95L82.60 36.88L82.69 36.98Q83.19 39.08 86.05 38.92L86.02 38.89L86.03 38.91Q86.80 38.84 87.83 38
            .61L87.81 38.59L87.76 38.54Q88.84 38.17 88.76 37.22L88.68 37.14L88.78 37.24Q88.54 35.97 86.75 35.28L86.89 35.43L83.07 33.89L82.99 33.81Q80.69 32.50 80.35 28.96L80.40 29.01L80.28 28
            .89Q80.21 26.88 82.38 26.31L82.40 26.33L82.42 26.35Q83.36 26.11 86.33 26.11L86.21 25.99L86.19 25.97Q91.20 26.10 92.11 28.61L91.95 28.45L92.10 28.60Q91.42 29.11 90.70 29.57L90.66 29
            .53L89.25 30.48L89.24 30.47Q88.69 28.50 85.45 28.27L85.50 28.33L85.55 28.37Q84.96 28.39 83.93 28.81L84.01 28.89L83.95 28.83Q83.27 29.07 83.27 30.17L83.33 30.23L83.36 30.26Q83.76 31
            .38 85.59 32.07L85.49 31.97L85.58 32.06Q86.56 32.35 89.22 33.46L89.28 33.51L89.30 33.53Q91.03 34.27 91.22 36.82L91.34 36.94L91.25 36.86Q91.42 37.60 91.34 38.58L91.21 38.45L91.22 38
            .46Q91.14 39.29 90.57 39.94L90.66 40.04L90.58 39.95Q88.99 41.07 85.95 41.07ZM90.77 43.72L90.88 43.83L90.75 43.70Q91.60 43.67 92.97 43.37L93.12 43.52L93.14 43.54Q94.18 42.83 93.99 4
            1.62L94.02 41.64L93.94 41.57Q93.79 40.92 93.49 39.32L93.47 39.30L93.58 39.42Q93.10 36.54 91.32 35.32L91.22 35.22L91.23 35.23Q90.74 33.87 89.49 33.15L89.51 33.17L89.42 33.08Q88.12 3
            2.62 85.64 31.67L85.76 31.78L85.66 31.68Q85.81 31.22 86.07 31.11L86.19 31.22L86.14 31.17Q86.81 30.77 87.45 30.73L87.46 30.74L87.39 30.68Q88.14 30.58 88.90 30.85L88.85 30.80L89.01 3
            1.03L88.98 30.89L89.30 31.02L89.22 30.98L89.23 30.99Q90.44 31.59 90.63 32.85L90.64 32.86L90.65 32.86Q91.90 32.02 93.80 30.34L93.72 30.26L93.77 30.31Q93.57 29.65 92.58 28.47L92.42 2
            8.31L92.48 28.38Q91.31 25.64 86.21 25.53L86.27 25.60L86.32 25.64Q83.08 25.53 81.10 26.10L81.13 26.13L81.07 26.06Q79.62 26.60 79.85 28.69L79.87 28.71L79.97 28.81Q79.98 29.96 80.89 3
            2.05L80.90 32.06L81.04 32.20Q81.46 33.19 82.49 33.91L82.59 34.02L82.46 33.89Q83.24 35.47 84.54 36.16L84.54 36.16L84.58 36.20Q85.49 36.43 86.45 36.81L86.36 36.73L88.28 37.50L88.38 3
            7.60Q88.00 38.67 86.06 38.55L85.95 38.44L86.01 38.50Q85.59 38.58 84.37 38.28L84.38 38.28L84.38 38.13L84.14 38.12L84.28 38.26Q83.43 37.90 82.78 36.42L82.80 36.43L82.73 36.36Q80.66 3
            7.99 79.56 39.13L79.47 39.05L79.39 38.96Q79.84 40.02 80.87 40.82L80.87 40.82L80.57 40.83L80.62 40.88Q82.15 43.10 86.38 43.48L86.38 43.48L86.35 43.45Q87.56 43.52 90.80 43.75Z"/><pat
            h fill="#111" d="M107.26 38.91L107.27 38.92L107.31 38.96Q109.15 36.54 113.91 29.27L113.83 29.19L114.00 29.35Q117.97 23.09 120.83 19.82L120.84 19.82L120.84 19.83Q118.67 20.05 116.58
            20.05L116.57 20.04L116.57 20.05Q111.40 20.13 107.40 18.34L107.32 18.26L107.38 18.32Q106.80 16.48 106.11 14.92L106.06 14.87L106.01 14.82Q110.53 16.94 116.21 17.06L116.34 17.19L116.
            32 17.17Q121.39 17.18 126.57 15.27L126.56 15.27L126.65 15.36Q126.13 16.06 125.83 16.86L125.87 16.90L125.39 18.59L125.37 18.57Q122.21 22.11 118.21 27.93L118.34 28.07L114.88 32.75L11
            4.94 32.81Q113.22 35.20 111.40 37.49L111.36 37.45L111.40 37.49Q114.72 36.89 118.04 36.97L118.11 37.04L118.06 36.99Q121.38 37.08 124.54 37.99L124.47 37.92L125.09 39.65L124.99 39.55Q
            125.24 40.37 125.59 41.21L125.57 41.19L125.55 41.17Q121.04 39.75 115.90 39.94L115.74 39.78L115.85 39.89Q110.66 40.02 106.16 42.04L106.12 42.00L106.24 42.11Q106.62 41.05 107.35 39.0
            0ZM105.57 42.74L105.56 42.73L105.71 42.88Q106.82 42.16 107.62 41.90L107.71 41.99L107.71 41.98Q107.45 42.75 106.76 44.27L106.62 44.14L106.76 44.27Q112.40 42.07 118.38 42.30L118.27 4
            2.19L118.30 42.22Q124.75 42.58 129.77 45.36L129.63 45.22L129.64 45.22Q128.30 42.90 127.50 40.73L127.54 40.76L127.50 40.72Q127.09 40.58 125.56 40.01L125.45 39.89L125.54 39.99Q125.34
            39.21 124.92 37.72L124.91 37.72L124.85 37.66Q120.74 36.51 115.63 36.70L115.56 36.62L115.71 36.77Q117.67 33.86 121.21 28.30L121.25 28.34L121.20 28.29Q124.98 22.71 126.88 20.16L126.
            76 20.04L126.89 20.16Q127.28 18.65 128.30 15.95L128.46 16.11L128.32 15.96Q127.70 16.37 126.26 16.98L126.33 17.05L126.27 17.00Q126.53 16.12 127.26 14.59L127.40 14.74L127.40 14.74Q12
            1.94 16.73 116.23 16.66L116.19 16.63L116.23 16.66Q110.34 16.64 105.39 14.12L105.31 14.04L105.27 14.00Q106.55 16.50 107.27 18.74L107.18 18.66L107.24 18.72Q108.26 19.16 109.06 19.39L
            109.07 19.40L109.11 19.45Q109.34 20.09 109.61 21.54L109.70 21.63L109.72 21.65Q113.28 22.54 118.15 22.35L118.22 22.43L118.25 22.45Q115.80 25.60 112.49 30.59L112.59 30.68L106.99 38.9
            4L106.96 38.92Q106.70 40.29 105.67 42.84Z"/><path fill="#333" d="M28.60 29.86L28.68 29.95L28.74 30.00Q26.19 29.85 24.85 31.07L24.70 30.92L24.84 31.05Q23.35 32.11 23.65 34.62L23.64
            34.62L23.65 34.63Q24.06 37.23 25.27 38.49L25.25 38.47L25.29 38.50Q26.30 39.78 28.43 39.70L28.49 39.76L28.44 39.71Q29.01 39.72 29.20 39.72L29.29 39.81L29.23 39.75Q32.85 39.21 32.96
            34.61L32.85 34.49L32.79 34.44Q32.97 32.17 32.28 31.37L32.26 31.35L32.20 31.29Q31.10 29.97 28.55 29.81ZM32.04 41.72L32.00 41.68L31.89 41.57Q30.61 42.19 29.05 42.11L29.03 42.09L29.04
            42.11Q25.25 42.35 23.96 39.76L23.89 39.69L23.87 39.67Q23.72 45.05 22.39 49.31L22.49 49.41L22.41 49.33Q20.74 49.95 19.11 50.67L18.97 50.53L18.95 50.51Q21.49 44.53 21.23 37.57L21.35
            37.68L21.36 37.70Q20.99 30.74 18.10 24.69L18.24 24.83L18.24 24.83Q20.05 25.88 21.76 26.34L21.85 26.43L22.38 27.91L22.28 27.80Q22.36 28.12 22.63 29.22L22.67 29.26L22.67 29.27Q23.65
            27.16 27.23 26.97L27.37 27.11L27.35 27.09Q28.17 26.99 29.04 26.99L29.08 27.03L29.51 26.96L29.49 26.94Q29.68 27.02 29.87 27.06L29.85 27.04L30.16 27.05L30.13 27.01Q32.35 27.44 33.07
            27.67L32.94 27.54L32.89 27.49Q34.55 28.13 35.43 29.08L35.36 29.01L35.33 28.98Q36.28 30.27 36.24 31.68L36.07 31.51L36.05 31.49Q36.23 34.52 35.43 37.19L35.37 37.13L35.42 37.17Q34.32
            40.61 31.96 41.63ZM36.29 42.31L36.32 42.31L36.13 42.11Q37.29 40.18 37.59 36.07L37.71 36.20L37.67 36.15Q37.79 34.37 37.79 33.12L37.76 33.08L37.82 33.14Q37.79 31.59 37.03 30.18L37.1
            0 30.26L37.04 30.20Q36.54 29.66 36.05 29.28L36.13 29.36L35.96 29.07L35.67 28.67L35.82 28.71L35.66 28.55Q33.96 26.54 29.62 26.54L29.74 26.66L29.02 26.56L29.12 26.66Q24.45 26.63 22.8
            1 28.23L22.74 28.16L22.74 28.15Q22.67 27.74 22.51 27.24L22.46 27.19L22.22 26.15L22.26 26.18Q19.61 25.40 17.40 23.92L17.51 24.02L17.40 23.92Q20.75 30.31 21.06 37.55L21.01 37.50L21.0
            7 37.57Q21.25 44.71 18.40 51.18L18.46 51.24L20.53 50.46L20.55 50.48Q20.25 51.17 19.56 52.73L19.55 52.71L19.59 52.75Q22.15 51.54 24.47 51.20L24.53 51.26L24.48 51.21Q25.65 46.44 25.8
            0 42.71L25.77 42.68L25.88 42.79Q27.30 44.29 30.92 44.51L30.86 44.46L30.84 44.44Q34.69 44.60 36.14 42.16L36.25 42.27ZM30.56 32.17L30.60 32.21L30.56 32.16Q31.22 32.10 32.32 32.44L32.
            34 32.46L32.35 32.48Q32.58 33.43 32.55 34.61L32.54 34.60L32.50 34.56Q32.46 35.43 32.27 36.08L32.36 36.17L32.26 36.07Q31.54 38.97 29.02 39.27L29.11 39.36L29.28 39.42L29.27 39.40Q29.
            20 39.41 29.08 39.45L29.05 39.42L28.40 39.30L28.52 39.41Q27.41 39.48 26.42 38.99L26.39 38.96L26.00 36.85L25.87 36.72Q25.89 34.57 27.18 33.55L27.20 33.56L27.11 33.47Q28.23 32.50 30.63 32.24Z"/></svg>`
                }
            }
        }
    },
    {
        url: '/api/user/add',
        type: 'post',
        response:()=> {
            return {
                code: 200,
                message: '注册成功',
                data: {
                    loginId: 'heo',
                    loginPwd: '123456',
                }
            }
        }
    },
    {
        url: '/api/user/login',
        type: 'post',
        response:()=> {
            return {
                code: 200,
                message: '',
                data: {
                    loginId: 'heo',
                    enabled: true,
                    token: '123434353'
                }
            }
        }
    },
    {
        url: '/api/user',
        type: 'get',
        response:()=> {
            return {
                code: 200,
                message: '',
                data: {
                    id: '1',
                    loginId: 'heo'
                }
            }
        }
    },
    {
        url: '/api/user/1',
        type: 'get',
        response:()=> {
            return {
                code: 200,
                message: '',
                data: {
                    id: '1',
                    loginId: 'heo',
                    nickname: 'xiu',
                    avatar: 'https://ts1.cn.mm.bing.net/th/id/R-C.bd025bda6e078812aaf2e56cf8906bec?rik=8iTKr0%2bXo%2bf4Kw&riu=' +
                        'http%3a%2f%2fimg.crcz.com%2fallimg%2f201910%2f09%2f1570551764761452.jpg&ehk=NgQZFDEgNGeeaPl5BMmubPwF' +
                        'kuQ4v9fMyRdtxdti%2fdY%3d&risl=&pid=ImgRaw&r=0&sres=1&sresct=1',
                    mail: '234@qq.com',
                    qq: '234342',
                    wechat: 'hb243',
                    intro: '个人简介',
                    registerDate: '1619941606475',
                    lastLoginDate: '1619941606475',
                    points: 1000
                }
            }
        }
    },
]

export default userRouter